<?php

namespace App\Http\Controllers\Api;

use App\Http\Logic\CardLogic;
use App\Http\Requests\Api\CardRequest;

class CardController extends Controller
{
    public function store(CardRequest $cardRequest)
    {
        $request = $cardRequest->only(['category_id', 'card_question', 'card_answer', 'image_url']);
        $result = CardLogic::logic()->store($request);
        return $this->success('添加成功', $result);
    }
}
